const {
  log,
  details,
  up,
} = require('./controller');


exports.main = async (event, context) => {
  switch (event.action) {
    case 'log': {
      return log(event.params)
    }
    case 'details': {
      return details(event.params)
    }
    case 'up': {
      return up(event.params)
    }
  }
}
